package lab02.test14;


public class Rectangle extends Shape {

    //属性：长，宽

    double length,width;

    //行为：赋值,面积
    Rectangle(double x,double y){

        length=x;
        width=y;
    }


    @Override
    double getArea() {

        return length*width;
    }
}
